import pytesseract
from PIL import Image
# img=Image.open('test.png')
img1=Image.open('yzm1.png')
# code=pytesseract.image_to_string(img)
code1=pytesseract.image_to_string(img1)
# print(code)
print(code1)

